package Lab02.test14;


public class Circle extends Shape {
    //属性：半径....
    double radius;

    public Circle(double radius) {
        this. radius= radius;
    }
    //行为：包含一个抽象方法getArea()
    @Override
    double getArea() {
        System.out.println("圆面积：");
        return 3.14 * radius * radius;
    }

}